package com.xiyu.service.enums.elder.register;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 退住登记状态
*/
@Getter
@AllArgsConstructor
public enum ElderCheckOutStatusEnum implements IntArrayValuable {

    /**
    * 待退住
    */
    TO_BE_CHECK_OUT(1, "待退住"),
    /**
    * 已退住
    */
    CHECKED_OUT(2, "已退住"),
    /**
    * 已取消
    */
    CANCEL(3, "已取消");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(ElderCheckOutStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(ElderCheckOutStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
